package com.suse.lhw.resourceservere.POJO.input_POJO;

import com.suse.lhw.domin.FUnit;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.resourceservere.POJO.input_POJO
 * @ClassName: model_ifo_units
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/5/30 19:14
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/5/30 19:14
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Data
public class model_ifo_units {
    //fm


    private String name;
    /**
     * 食物图片地址
     */
    private String imgurl;


    /**
     * 描述
     */
    private String fmdescription;
    //ifo
    private String ifodescroption;

    /**
     * 碳水化合物，每100g
     */
    private Double carbohydrate;

    /**
     * 蛋白质，每100g
     */
    private Double protein;

    /**
     * 脂肪，每100g
     */
    private Double fat;

    private String tag;

    private String ortherNutrient;

    private List<FUnit> funit;

    public model_ifo_units() {

    }

    public model_ifo_units(String imgurl, String fmdescription, String ifodescroption, Double carbohydrate, Double protein, Double fat, String tag, String ortherNutrient, List<FUnit> funit) {
        this.imgurl = imgurl;
        this.fmdescription = fmdescription;
        this.ifodescroption = ifodescroption;
        this.carbohydrate = carbohydrate;
        this.protein = protein;
        this.fat = fat;
        this.tag = tag;
        this.ortherNutrient = ortherNutrient;
        this.funit = funit;

    }

    public model_ifo_units(String name, String imgurl, String fmdescription, String ifodescroption, Double carbohydrate, Double protein, Double fat, String tag, String ortherNutrient, List<FUnit> funit) {
        this.name = name;
        this.imgurl = imgurl;
        this.fmdescription = fmdescription;
        this.ifodescroption = ifodescroption;
        this.carbohydrate = carbohydrate;
        this.protein = protein;
        this.fat = fat;
        this.tag = tag;
        this.ortherNutrient = ortherNutrient;
        this.funit = funit;
    }

    @Override
    public String toString() {
        return "model_ifo_units{" + "\n" +
                "name='" + name + '\'' + "\n" +
                ", imgurl='" + imgurl + '\'' + "\n" +
                ", fmdescription='" + fmdescription + '\'' + "\n" +
                ", ifodescroption='" + ifodescroption + '\'' + "\n" +
                ", carbohydrate=" + carbohydrate + "\n" +
                ", protein=" + protein + "\n" +
                ", fat=" + fat + "\n" +
                ", tag='" + tag + '\'' + "\n" +
                ", ortherNutrient='" + ortherNutrient + '\'' + "\n" +
                ", funit=" + funit + "\n" +
                '}';
    }
}
